
<div class="uk-layui-form">
	<form class="layui-form" action="/apps/report/design/propertyupdate.html">
		<input type="hidden" name="id" value="${col.id!''}">
		<input type="hidden" name="mid" value="${col.modelid!''}">
		<div class="layui-form-item mea_sum">
			<label class="layui-form-label">合并行：</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="unresize" lay-skin="switch" value="1" <#if col.unresize?? && col.unresize>checked="checked"</#if> lay-text="启用|禁用">
			</div>
		</div>
		<div class="layui-form-item mea_sum">
			<label class="layui-form-label">默认排序：</label>
			<div class="layui-input-inline" style="width: 240px;">
				 <input type="radio" name="sorttype" value="" title="无" <#if !(col.sorttype?? && col.sorttype == 'desc')>checked="checked"</#if>>
				 <input type="radio" name="sorttype" value="desc" title="降序" <#if col.sorttype?? && col.sorttype == 'desc'>checked="checked"</#if>>
			</div>
		</div>
		<div class="layui-form-item mea_sum">
			<label class="layui-form-label">启用填充：</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="mgroup" lay-filter="mgroup" lay-skin="switch" value="1" <#if col.mgroup?? && col.mgroup>checked="checked"</#if> lay-text="启用|禁用">
			</div>
		</div>
		<div class="layui-form-item mea_sum" id="mgroup" style="<#if col.mgroup?? && col.mgroup><#else>display:none;</#if>">
			<label class="layui-form-label"></label>
			<div class="layui-input-inline">
				<textarea name="strreplace"  style="width:520px;" placeholder="请填写填充值，多个值请换行" class="layui-textarea" style="resize:none;">${col.strreplace!''}</textarea>
			</div>
		</div>
		<!-- <div class="layui-form-item">
            <label class="layui-form-label">字符替换：</label>
			<div id="propertypestrrep" style="margin: 0 0 0 100px;">
			<#include "/apps/business/report/design/modeldesign/propertypestrreplist.html">
        	</div>
        	<div class="layui-inline" >
				<div class="layui-input-inline" id="strrepadd" <#if strreplaceList?? && strreplaceList?size gt 0>style="margin: 0 0 0 100px;"</#if>>
					<button class="layui-btn layui-btn-normal"  type="button" ><i class="layui-icon">&#xe608;</i>添加</button>
				</div>
			</div>
        	
        </div> -->
		<div class="layui-form-button" >
			<div class="layui-button-block">
				 <button class="layui-btn layui-btn-normal" lay-submit>立即提交</button>
			</div>
		</div>
	</form>
</div>
<script>
//Demo
layui.use('form', function(){
  var $ = layui.$
  var form = layui.form;
  form.render(); 
  form.on('switch(mgroup)', function(data){
		if(data.elem.checked){
			  $("#mgroup").show();
		  }else{
			  $("#mgroup").hide();
		  }
	});
  
  $("#strrepadd").click(function(){
	  $("#propertypestrrep").append($("#tpl").text());
	  $("#strrepadd").css("margin","0 0 0 100px");
		form.render();
  });
});
function removeItem(obj){
	$(obj).closest(".propertypestrrep").remove();
	if($.trim($("#propertypestrrep").html()).length==0){
		$("#strrepadd").css("margin","");
	}
}
</script>
<script id="tpl" type="text/html">
<#include "/apps/business/report/design/modeldesign/propertypestrrep.html" />
</script>